import requst from '@/utils/requst'

export const artGetChannelService = () => {
  return requst.get('/my/cate/list')
}

export const artAddChannelServeice = (data) => {
  return requst.post('/my/cate/add', data)
}

export const artEidtChannelServeice = (data) => {
  return requst.put('/my/cate/info', data)
}

export const artDeleChannelServeice = (id) => {
  return requst.delete('/my/cate/del', {
    params: { id }
  })
}

export const artGetListService = (params) =>
  requst.get('/my/article/list', { params })

export const artPublishService = (data) => requst.post('/my/article/add', data)

export const artGetDetailService = (id) =>
  requst.get('/my/article/info', { params: { id } })

export const artEditService = (data) => requst.put('/my/article/info', data)
